package com.lukebang.controller;

import java.util.HashMap;
import java.util.Map;

import javax.annotation.Resource;
import javax.servlet.http.HttpSession;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.multipart.MultipartFile;
import org.springframework.web.servlet.ModelAndView;

import com.lukebang.pojo.Worker;
import com.lukebang.service.WorkerService;
import com.lukebang.util.Base64ImageUtils;
import com.lukebang.util.QINIUUploadUtil;

/**
 * 
 * PictureForController 上午10:53:22
 * 
 * Copyright zhaocj Inc. All rights reserved. Love ME Like Justin Bieber.
 */
@Controller
@RequestMapping("/worker/")
public class WorkerController {

	@Resource
	WorkerService workerService;
	
	// 查询接单工人的信息
	@RequestMapping("/queryInstallIndentByWorkerInfo")
	@ResponseBody
	public Worker queryInstallIndentByWorkerInfo(Integer indentID) {
		System.out.println("进入查询接单工人信息啦啦啦");
		Worker worker=workerService.selectInstallIndentByWorkerInfo(indentID);
		return worker;
	}
}
